package com.hailian.fintech.hlbackingserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wk
 * @since 2020-05-30
 */
@Data
@Accessors(chain = true)
@TableName("hl_partment")
public class Partment extends Model<Partment> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 公司名
     */
    private String name;
    /**
     * 省
     */
    private Integer provinceid;
    @TableField(exist = false)
    private String province;
    /**
     * 市
     */
    private Integer cityid;
    @TableField(exist = false)
    private String city;
    /**
     * 县
     */
    private Integer areaid;
    @TableField(exist = false)
    private String discover;
    /**
     * 详细地址
     */
    private String addr;
    /**
     * 类型Id
     */
    private Integer tid;
    @TableField(exist = false)
    private String type;
    /**
     * 法人姓名
     */
    private String sname;
    /**
     * 身份证号
     */
    private String idcard;
    /**
     * 身份证正面
     */
    private Integer idcard_front;
    @TableField(exist = false)
    private String pic1;
    /**
     * 身份证反面
     */
    private Integer idcard_side;
    @TableField(exist = false)
    private String pic2;
    /**
     * 身份证手持
     */
    private Integer idcard_hand;
    @TableField(exist = false)
    private String pic3;
    /**
     * 营业执照
     */
    private Integer business;
    @TableField(exist = false)
    private String pic4;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
